﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Admin
{
    public partial class Master : System.Web.UI.MasterPage
    {
        protected Models.Config config;
        protected Models.Role role;
        protected List<Models.Column> ColumnList;
        protected void Page_Load(object sender, EventArgs e)
        {          
            if (Session["role"] != null)
            {
                role = (Models.Role)Session["role"];
            }
            else
            {
                Response.Redirect("/Admin/Login");
            }
            ColumnList = BLL.GetList.ColumnList();
            config  = BLL.Find.GetConfigInfo();      
            if (ColumnList == null) { ColumnList = new List<Models.Column>(); }
        }
    }
}